package com.dev.bbs.domain;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Transient;

import com.dev.common.annotation.Excel;
import com.dev.common.core.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

/**
 * 社区用户对象 bbs_user
 *
 * @author ruoyi
 * @date 2019-09-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class BbsUser extends BaseEntity
{
    private static final long serialVersionUID = -1299404400113474056L;

    /** 用户主键 */
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long              userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String            username;

    /** 密码 */
    @Excel(name = "密码")
    private String            password;

    /** 盐 */
    @Excel(name = "盐")
    private String            salt;

    /** 昵称 */
    @Excel(name = "昵称")
    private String            nickname;

    /** 头像 */
    @Excel(name = "头像")
    private String            avatar;

    /** 状态 */
    @Excel(name = "状态")
    private Integer           status;

    /** 年龄 */
    @Excel(name = "最后登录ip")
    private String            loginIp;

    /** 年龄 */
    @Excel(name = "最后登录时间")
    private Date              loginDate;

    /** 认证内容 */
    private String            authContent;

    /** 是否管理员 */
    private Boolean           admin;

    /** 积分*/
    private Integer           kiss;

    /** 邮箱*/
    private String            email;

    /** 手机*/
    private String            mobile;
    
    /** 用户信息*/
    @Transient
    private BbsUserInfo       userInfo;
}
